package controllers

import (
	"fs_oms/models"

	"github.com/astaxie/beego"
)

type DelCDRController struct {
	beego.Controller
}

func (c *DelCDRController) Post() {
	err := models.DelAllCDR()
	if err != nil {
		c.Ctx.WriteString("删除通话记录失败:" + err.Error())
	} else {
		c.Ctx.WriteString("删除通话记录成功")
	}
}
